home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
wildcat
/
yestrdy6.zip
/
YESTRDAY.DOC
< prev
next >
Wrap
Text File
|
1992-01-18
|
12KB
|
304 lines
EagleSoft presents.....
YESTERDAY ---- Log scanners for Wildcat! BBS ver. 3.0 ---- TODAYCALL
--------------------------------------------------------------------
Version 4.0 January 1992 Version 4.0
What it is:
-----------
Many SysOps like to show their callers the activity on their BBSs. Some
like a cumulative log for the current day, which requires a "call pro-
cessing event" after each call. TODAYCALL will handle this for you.
Put it in a POSTCALL.RUN file and it will refresh the bulletin after each
call. Some prefer to scan their logs once a night and prepare a list of
the previous day's activity. This is what YESTRDAY & YESTRDYM do for you.
They are intended to run as soon as possible after midnight, but can be
run anytime during the day. YESTRDYM is a multi-line version of YESTRDAY.
It requires more system resources and takes longer to run, so use YESTRDAY
for single line systems. All three programs reduce the information in the
log to a single line for each call, showing Name, City, Baud, Messages
Posted, Uploads, Downloads, Time On, Time Off and whether the caller dropped
carrier. At the end of the run it will summarize all of this, plus total
number of calls, local log-ins, minutes used, and in the case of YESTERDAY,
utilization percentage. YESTERDAY allows you to specify the average number
of minutes per day your BBS is available for calls, i.e. excluding events
and other scheduled off-line time. If your events total 40 minutes per day,
your utilization will be calculated based upon 1400 available minutes rather
than 1440. If you run a part-time board that's only on-line 12 hours a day,
your usage will be calculated based on 720 minutes. A file with the name of
your choice is written and can be used for a bulletin, a hello screen or
however you choose.
What it costs:
--------------
NOTHING! The executables of YESTERDAY and TODAYCALL are freeware. No cost.
Running a bulletin board is expensive enough without one more clown sticking
his hand out. Run them on your board, give them to your friends, make them
available for downloading. In short, ENJOY! (Of course, if you like them
enough and want to express your appreciation in some tangible form, it would
always be welcome. Like I said, running a BBS is expensive!)
All rights to the source code for YESTERDAY and TODAYCALL remain with the
author, Norman Morgan.
You may NOT modify these programs or supporting files, including this
documentation, in any way. Although I have written and tested the programs
carefully, and they appears to function without error, you assume all risks
associated with their use. I will not be responsible for any damages caused
by the use of this program.
What's New in 4.0?
------------------
All three programs now support only Wildcat! 3.0 formats. Bulletins are
generated using the "@BF@" codes for color and the "@PAUSE@" at the end of
each bulletin.
The Program does NOT handle the new filename format for the activity log.
You must copy or rename your log file to ACTIVITY.LOG before running these
programs.
YESTRDAY.DOC Page 1
YESTERDAY Wildcat! Log Scan...cont'd.
-------------------------------------
How it works:
-------------
YESTERDAY checks the system date and calculates yesterday's date from it.
The algorithm used is correct through 2003. It then reads the log file
and examines each line to determine if it is a logon record, a logoff
record, a line of dashes, or something else. Information is extracted
from the various records and used to accumulate the statistics. Names and
cities are truncated to 22 characters if they are longer. Selected records
which match on date are written to the bulletin files. Both a regular and
ANSI color file are created.
While it is running, YESTERDAY keeps you informed as to what it is doing.
When it is skipping records from earlier dates, it scrolls the dashed line
separators. When it is processing yesterday's calls, it scrolls each log
record in a center window. Each detail line written to the output file is
display in a bottom window.
How YESTRDAY is run:
--------------------
Place YESTRDAY.EXE in the directory where your ACTIVITY.LOG is located.
Run YESTRDAY with a command line parameter naming the file you wish to
create:
YESTRDAY \wildcat\bull\bull12 /1380
NOTE: YESTERDAY will automatically add the .BBS extension for your file.
The "/1380" indicates that this BBS is off-line for events or other reasons
for an average 60 minutes per day. If this parameter is omitted, YESTERDAY
assumes a full 24 hour availability and uses 1440 minutes in the utilization
calculations. The "/" and the space before it are mandatory if the parameter
is used. Note that this parameter is always in minutes and can never exceed
1440. A part-time board on-line for 12 hours would enter /720.
That's all there is to it. On small log files it runs less than 30 seconds.
I purge my log every night after running YESTERDAY and Mustang's S-PRO!, but
if you wish to leave longer log files intact or choose not to run YESTERDAY
at exactly midnight, it will happily extract just the previous days' activity
whenever it is run.
YESTRDYM is run identically to its little brother with two exceptions. You
must first concatenate all your node activity logs into a single file with
the DOS concatenation operator. Like this...
COPY ACTIVITY.001+ACTIVITY.002+ACTIVITY.003 ACTIVITY.LOG
The resulting file MUST be named ACTIVITY.LOG. It does not matter where you
put this resulting file so long as it is in the current DOS directory. The
other difference between YESTRDYM and YESTRDAY is the time parameter. Add up
the average available minutes for all nodes combined and place that number in
the command line.
YESTRDYM can handle an absolute maximum of 500 calls for all nodes combined.
This limitation is due to the sorting that must occur to keep the output
files in ascending time order. If you require a version that can handle
more than 500 total calls per day, please contact me.
YESTRDAY.DOC Page 2
TODAYCALL Wildcat! Log Scan...cont'd.
-------------------------------------
How it works:
-------------
TODAYCALL extracts the system date and compares it to each date in the log.
It examines each line to determine if it is a logon record, a logoff
record, a line of dashes, or something else. Information is extracted
from the various records and used to accumulate the statistics. Names and
cities are truncated to 22 characters if they are longer. Selected records
which match on date are written to the bulletin files. Both a regular and
ANSI color file are created.
While it is running, TODAYCALL keeps you informed as to what it is doing.
When it is skipping records from earlier dates, it scrolls the dashed line
separators. When it is processing today's calls, it scrolls each log
record in a center window. Each detail line written to the output file is
display in a bottom window.
How it is run:
--------------
Place TODAYCAL.EXE in the directory where your ACTIVITY.LOG is located.
Run TODAYCAL with a command line parameter naming the file you wish to
create:
TODAYCAL \wildcat\bull\bull13
NOTE: Do not specify an extension on the file name. TODAYCALL will
automatically add the .BBS extension for your file.
The easiest way to run it is to modify your CAT.BAT file to run a "Call
Processing Event". See pages 151 and 214 in your Wildcat! 3.0 manual for
full details on using the POSTCALL.RUN file. Unless you keep enormous
amounts of old data in your activity log, it should add only 15-20 seconds
to the time between calls. TODAYCALL remains a single node program. It
did not seem reasonable to be reading another node's activity log if that
node might be writing to it!
Each of the preceding program works much faster with small log files.
Balancing the need to keep historical log information and the need to keep
logs as compact as possible, we present the final program in this set:
SAVELOG.EXE
-----------
My personal strategy for log-keeping is to have no more than one (1) days
data in the ACTIVITY.nnn file. I run a soft event as soon as possible
after midnight and process the log information, then reset the log for a
new day. Here is am extract from that event...
.....
COPY ACTIVITY.001 ACTIVITY.LOG
YESTRDAY \WC30\BULL\BULL11 /1320
SAVELOG C:\BACKUP\
DEL ACTIVITY.LOG
WCPRO NIGHTLY.PRO
.....
YESTRDAY.DOC Page 3
SAVELOG Wildcat! Log Manager...cont'd.
--------------------------------------
How it works:
-------------
SAVELOG copies ACTIVITY.LOG to a new file named YYMMDD.LOG, where YYMMDD is
the yesterday's date. It then appends this new file to a ZIP file called
xxxLOGS.ZIP, where xxx is JAN, FEB, MAR, etc. The ZIP file will be located
in the path named on the command line.
Want to find any day's log? Fire up SHEZ or ARCMASTER in that directory and
your have a completely indexed collection of logs for an entire year!
Now it is safe to either let WCPRO scratch your ACTIVITY.nnn or you may do
as part of your event if you do not use WCPRO.
Credits and Copyrights:
-----------------------
YESTERDAY, YESTERDAYM, TODAYCALL and SAVELOG are copyright 1992 by
Norman Morgan. They are written in Microsoft QuickBASIC and incorporate
the excellent user interface routines written by Daniel R. Berry and
Traveler Software. They are compiled to be stand-alone programs and do
NOT require the QB runtime module to operate.
Support for this and other EagleSoft programs is available on
The Eagle's Nest BBS -- dedicated to supporting the principles,
programs and members of the Boy Scouts of America.
Norman Morgan - SysOp
<<<<< The Eagle's Nest BBS >>>>>
(812) 425-6950 24 hrs 8/N/1 300/1200/2400/9600HST
RelayNet ID: SCOUT
YESTRDAY.DOC Page 4
R E G I S T R A T I O N F O R M
---------------------------------
YESTERDAY 4.0 -*- TODAYCALL 4.0
There is NO CHARGE for using YESTERDAY or TODAYCALL, but we would like to
know who you are and to hear any suggestions you might have for improving
the programs. Please tear off this page, fill it in and mail it to the
address below:
Please print:
BBS Name:__________________________________________
BBS Number:__________________________________________
BBS Hours:__________________________________________
Baud Rates:__________________________________________
Your Name:__________________________________________
Address:__________________________________________
__________________________________________
City:_____________________________ State: ____
ZIP Code:_______________ Phone:__________________
Please mail this form to:
Norman O. Morgan
313 Lexington Road
Evansville, IN 47710-3724
Comments and suggestions:
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________